package com.zfei.gfb.vo;


import com.zfei.gfb.model.GfbUser;
import com.zfei.gfb.model.GfbVillager;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

/**
 * @author fgh
 */
@Data
public class GfbGoodsVo {

    // id
    @ApiModelProperty(value = "物品id", required = true)
    private Integer id;
    // 操作人uid
    @ApiModelProperty(value = "操作人uid", required = true)
    private Integer userId;
    // 物品名称
    @ApiModelProperty(value = "物品名称", required = true)
    private String name;
    // 售卖方式：1:工分兑换 2:面议
    @ApiModelProperty(value = "售卖方式：1:工分兑换 2:面议", required = true)
    private Integer saleType;
    // 售卖地址
    @ApiModelProperty(value = "售卖地址", required = true)
    private String address;
    // 联系人电话
    @ApiModelProperty(value = "联系人电话", required = true)
    private String phone;
    // 物品价格，工分
    @ApiModelProperty(value = "工分", required = true)
    private Integer price;
    // 物品描述
    @ApiModelProperty(value = "物品描述", required = true)
    private String content;
    // 图片url集合,json数组形式
    @ApiModelProperty(value = "图片url集合", required = true)
    private List<String> images;

    // 状态: 0:下架 1:上架 2:交易中 3:已兑换
    @ApiModelProperty(value = "状态: 0:下架 1:上架 2:交易中 3:已兑换", required = true)
    private Integer status;

    @ApiModelProperty(value = "能否购买，1能，0不能", required = true)
    private Boolean canBuy;
    // 扩展
    private String ext;
    //
    @ApiModelProperty(value = "发布时间", required = true)
    private Long pubTime;
    // 浏览量
    @ApiModelProperty(value = "浏览量", required = true)
    private Long browseNum;

    @ApiModelProperty(value = "联系人", required = true)
    private String owner;

    @ApiModelProperty(value = "物主村民信息", required = true)
    private GfbVillager villager;

    @ApiModelProperty(value = "来源，admin=后台录入，client=app录入", required = true)
    private String from;

}

